\documentclass[spanish,a4paper]{article} 

\usepackage[spanish]{babel}
\usepackage[latin1]{inputenc}
%\usepackage{bbm}
\usepackage{framed}
\usepackage{caratula}
\usepackage{listings}
\input{macrosAlgo1}

\newcommand{\comen}[2]{%

\begin{framed}

\noindent \textsf{#1:} #2

\end{framed}

}

\begin{document}

\input{caratulademo.tex}

% Titulos

%\materia{Algoritmos y Estructura de Datos I}
\materia{Algoritmos y Estructuras de Datos I}

\cuatrimestre{2}

\anio{2011}

\fecha{21 de noviembre de 2011}

\nombre{TPI: Demostraci\'on}

\titulotp

% Seccion con los tipos definidos

\lstset{numbers=left,
numberstyle=\footnotesize,      % the size of the fonts that are used for the line-numbers
stepnumber=1,                   % the step between two line-numbers. If it's 1, each line 
                                % will be numbered
numbersep=5pt,                  % how far the line-numbers are from the code
frame=single,                  % adds a frame around the code
tabsize=4,                      % sets default tabsize to 4 spaces
}

\input{demostracion.tex}

\input{demostracion2.tex}

\input{demostracion3.tex}

\end{document}
